# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-aesedb
_pkgname=aesedb
pkgver=0.1.6
_pyver=3.13
pkgrel=4
pkgdesc='Async parser for NTDS.dit database file for obtaining user secrets and JET databases.'
arch=('any')
url='https://pypi.org/project/aesedb/#files'
license=('custom')
depends=('python' 'python-pycryptodomex' 'python-unicrypto' 'python-aiowinreg'
         'python-tqdm' 'python-colorama')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://github.com/skelsec/aesedb/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('73513510909da98ab27f21d4a4b630294212132ba6d583dba99578764c20c887cf56b6456709b1c161c2b46958bd4318abccddade80f3b3d98478114d3a98520')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/tests/"
}
